package com.orhonit.ipb.portal.biz;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.orhonit.ipb.portal.entity.JoStatusTime;
import com.orhonit.ipb.portal.mapper.JoStatusTimeMapper;
import com.orhonit.ipb.security.common.biz.BusinessBiz;


/**
 * 入党各阶段时间
 *
 * @author 
 * @email 
 * @version 2018-05-23 10:20:51
 */
@Service
public class JoStatusTimeBiz extends BusinessBiz<JoStatusTimeMapper,JoStatusTime> {

    @Autowired
    private JoStatusTimeMapper joStatusTimeMapper;
	/**
	 * 通过申请id更新各阶段时间
	 * @param map
	 * @return
	 */
    @Transactional(rollbackFor = Exception.class)
	public boolean updateactivist(JoStatusTime joStatusTime){
		boolean a=false;
		int count=joStatusTimeMapper.updateactivist(joStatusTime);
		if(count>0){
			a=true;
		}
		return a;
	}
}